package com.tale.ssm.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.tale.ssm.dao.GradeDao;
import com.tale.ssm.entity.Grade;
import com.tale.ssm.service.GradeService;

@Service
public class GradeServiceImpl implements GradeService{
	
	@Autowired
	private GradeDao gradeDao;

	@Override
	public List<Grade> findList(Map<String, Object> map) {
		return gradeDao.findList(map);
	}

	@Override
	public Integer getTotal(String userName) {
		return gradeDao.getTotal(userName);
	}

	@Override
	public int add(Grade grade) {
		return gradeDao.add(grade);
	}

	@Override
	public int delete(String ids) {
		return gradeDao.delete(ids);
	}

	@Override
	public int edit(Grade grade) {
		return gradeDao.edit(grade);
	}

	@Override
	public List<Grade> findAll() {
		return gradeDao.findAll();
	}

	
}
